﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;

namespace Com.CMS263.DAO
{
    public class NoteResultDAO : BaseService
    {
        public IList<NoteResult> GetListByUserIdAndNoteId(int noteId, int userId)
        {
            string hql = "from NoteResult where UserId="+userId+"and NoteId ="+noteId+"order by AddDate desc";
            try
            {
                return FindList<NoteResult>(hql, null, null, null);
            }
            catch (Exception)
            {  
                return null;
            }
           
        }
    }
}
